project(plasma_applet_ftpmonitor)

find_package(KDE4 REQUIRED)
include(KDE4Defaults)

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES} )

add_subdirectory(icons)
add_subdirectory(pics)


set( ftpmonitor_SRCS
    src/ftpmonitorloop.cpp
    src/ftpmonitorloop.h
    src/ftpmonitor.cpp
    src/ftpmonitor.h
	src/ftpserver/proftpdmonitor.h
	src/ftpserver/ncftpdmonitor.h
	src/ftpserver/vsftpdmonitor.h
	src/ftpserver/pureftpdmonitor.h
)

kde4_add_ui_files(ftpmonitor_SRCS src/ftpmonitorConfig.ui)

kde4_add_plugin(plasma_applet_ftpmonitor ${ftpmonitor_SRCS})
target_link_libraries(plasma_applet_ftpmonitor ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS} )

install(TARGETS plasma_applet_ftpmonitor DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-applet-ftpmonitor.desktop DESTINATION ${SERVICES_INSTALL_DIR})
install(FILES ftpmonitor.notifyrc DESTINATION ${DATA_INSTALL_DIR}/ftpmonitor )
